package wisents.wicket.form;

import wisents.api.FormRepresentation;
import wisents.api.FormSubmitter;
import wisents.wicket.form.submitingstrategy.WicketFormSubmittingStrategy;

/**
 * Created by IntelliJ IDEA.
 * User: rabbit
 * Date: Dec 23, 2009 Time: 10:25:18 AM
 */
public class WicketFormSubmitter implements FormSubmitter {

    private WicketFormSubmittingStrategy formSubmittingStrategy;


    public WicketFormSubmitter(WicketFormSubmittingStrategy formSubmittingStrategy) {
        this.formSubmittingStrategy = formSubmittingStrategy;
    }

    public final void submit(FormRepresentation form) {
        formSubmittingStrategy.submit(form);
    }
}
